Optimal. Leaf size=52 \[ \frac {\log (\sin (c+d x))}{a^2 d}-\frac {\log (1+\sin (c+d x))}{a^2 d}+\frac {1}{d \left (a^2+a^2 \sin (c+d x)\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 52, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.105, Rules used = {2786, 46}
\begin {gather*} \frac {1}{d \left (a^2 \sin (c+d x)+a^2\right )}+\frac {\log (\sin (c+d x))}{a^2 d}-\frac {\log (\sin (c+d x)+1)}{a^2 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 46
Rule 2786
Rubi steps
\begin {align*} \int \frac {\cot (c+d x)}{(a+a \sin (c+d x))^2} \, dx &=\frac {\text {Subst}\left (\int \frac {1}{x (a+x)^2} \, dx,x,a \sin (c+d x)\right )}{d}\\ &=\frac {\text {Subst}\left (\int \left (\frac {1}{a^2 x}-\frac {1}{a (a+x)^2}-\frac {1}{a^2 (a+x)}\right ) \, dx,x,a \sin (c+d x)\right )}{d}\\ &=\frac {\log (\sin (c+d x))}{a^2 d}-\frac {\log (1+\sin (c+d x))}{a^2 d}+\frac {1}{d \left (a^2+a^2 \sin (c+d x)\right )}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.04, size = 36, normalized size = 0.69 \begin {gather*} \frac {\log (\sin (c+d x))-\log (1+\sin (c+d x))+\frac {1}{1+\sin (c+d x)}}{a^2 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.17, size = 37, normalized size = 0.71
method | result | size |
derivativedivides | \(\frac {\ln \left (\sin \left (d x +c \right )\right )+\frac {1}{1+\sin \left (d x +c \right )}-\ln \left (1+\sin \left (d x +c \right )\right )}{a^{2} d}\) | \(37\) |
default | \(\frac {\ln \left (\sin \left (d x +c \right )\right )+\frac {1}{1+\sin \left (d x +c \right )}-\ln \left (1+\sin \left (d x +c \right )\right )}{a^{2} d}\) | \(37\) |
risch | \(\frac {2 i {\mathrm e}^{i \left (d x +c \right )}}{d \,a^{2} \left ({\mathrm e}^{i \left (d x +c \right )}+i\right )^{2}}-\frac {2 \ln \left ({\mathrm e}^{i \left (d x +c \right )}+i\right )}{a^{2} d}+\frac {\ln \left ({\mathrm e}^{2 i \left (d x +c \right )}-1\right )}{a^{2} d}\) | \(74\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.28, size = 46, normalized size = 0.88 \begin {gather*} \frac {\frac {1}{a^{2} \sin \left (d x + c\right ) + a^{2}} - \frac {\log \left (\sin \left (d x + c\right ) + 1\right )}{a^{2}} + \frac {\log \left (\sin \left (d x + c\right )\right )}{a^{2}}}{d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.37, size = 59, normalized size = 1.13 \begin {gather*} \frac {{\left (\sin \left (d x + c\right ) + 1\right )} \log \left (\frac {1}{2} \, \sin \left (d x + c\right )\right ) - {\left (\sin \left (d x + c\right ) + 1\right )} \log \left (\sin \left (d x + c\right ) + 1\right ) + 1}{a^{2} d \sin \left (d x + c\right ) + a^{2} d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \frac {\int \frac {\cot {\left (c + d x \right )}}{\sin ^{2}{\left (c + d x \right )} + 2 \sin {\left (c + d x \right )} + 1}\, dx}{a^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 3.60, size = 45, normalized size = 0.87 \begin {gather*} \frac {a {\left (\frac {\log \left ({\left | -\frac {a}{a \sin \left (d x + c\right ) + a} + 1 \right |}\right )}{a^{3}} + \frac {1}{{\left (a \sin \left (d x + c\right ) + a\right )} a^{2}}\right )}}{d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 6.59, size = 87, normalized size = 1.67 \begin {gather*} \frac {\ln \left (\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\right )}{a^2\,d}-\frac {2\,\ln \left (\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )+1\right )}{a^2\,d}-\frac {2\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{d\,\left (a^2\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2+2\,a^2\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )+a^2\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________